package itcast.service;

import itcast.domain.Admin;
import itcast.domain.Buildmanager;
import itcast.domain.PageBean;

import java.util.List;
import java.util.Map;

public interface BuildmanagerService {
    /*
    楼宇管理员的业务接口
     */

        /**
         * 查询楼宇管理员用户信息
         * @return
         */
        public List<Buildmanager> findAll();

    /**
     * 保存buildmanager
     * @param buildmanager
     */
    void addbuildmanager(Buildmanager buildmanager);

    /**
     * 根据id删除buildmanager数据
     * @param id
     */
    void deleteBuildmanager(String id);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Buildmanager findBuildmanagerById(String id);

    /**
     * 修改用户信息
     * @param buildmanager
     */
    void updateBuildmamager(Buildmanager buildmanager);

    /**
     * 删除选中用户
     * @param ids
     */
    void delSelectedUser(String[] ids);

    /**
     * 分页查询
     * @param currentPage
     * @param rows
     * @return
     */
    PageBean<Buildmanager> findBuildmanagerByPage(String currentPage, String rows);


    //条件查询
    List<Buildmanager> findBuildmanagerByDate(Map<String,String[]> condition);

  /*  Buildmanager denglu(Buildmanager buildmanager);*/

    //登录查询
    Buildmanager denglu(String buildmanager_username, String buildmanager_password);
}
